package com.atguigu.visitor.demo1;

public class Client {

	public static void main(String[] args) {
		//创建ObjectStructure
		ObjectStructure objectStructure = new ObjectStructure();
		
		objectStructure.attach(new PersonMan());
		objectStructure.attach(new PersonMan());
		objectStructure.attach(new PersonWoman());
		
		
		//成功
		ActionForSuccess success = new ActionForSuccess();
		objectStructure.display(success);
		
		System.out.println("==============================");
		ActionForFail fail = new ActionForFail();
		objectStructure.display(fail);
		
		System.out.println("=======给的是待定的测评========");
		ActionForWait wait = new ActionForWait();
		objectStructure.display(wait);
	}
}
